//
//  TLAVPlayerLayer.m
//  TLAVPlayerDemo
//
//  Created by candy曦琰渃雪 on 17/7/31.
//  Copyright © 2017年 Tianlong. All rights reserved.
//

#import "TLAVPlayerLayer.h"

@implementation TLAVPlayerLayer

//// 创建静态对象 防止外部访问
//static TLAVPlayerLayer *_instance;
//+(instancetype)allocWithZone:(struct _NSZone *)zone{
//    // 也可以使用一次性代码
//    static dispatch_once_t onceToken;
//    dispatch_once(&onceToken, ^{
//        if (_instance == nil) {
//            _instance = [super allocWithZone:zone];
//        }
//    });
//    return _instance;
//}
//
//+(instancetype)sharePlayerLayer{
//    static dispatch_once_t onceToken;
//    dispatch_once(&onceToken, ^{
//        if (_instance == nil) {
//            _instance = (TLAVPlayerLayer *)[TLAVPlayerLayer playerLayerWithPlayer:[[AVPlayer alloc] init]];
//        }
//    });
//    return _instance;
//}
//
//-(id)copyWithZone:(NSZone *)zone{
//    return _instance;
//}
//
//-(id)mutableCopyWithZone:(NSZone *)zone{
//    return _instance;
//}

@end
